<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="../../../common/common-easyui.jspf" %>
<!DOCTYPE html >
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>主观答题信息</title>
</head>
<body>
<table id="dg" title="主观答题信息" class="easyui-datagrid" style="width:100%;height:100%"
       data-options="
			url:'checkSubjectiveController?flag=list',
			toolbar:'#toolbar',
			rownumbers:'true',
			 fitColumns:'true' ,
			 singleSelect:'true'">
    <thead>
    <tr>
        <th data-options="field:'subId'" width="50">主观答题信息编号</th>
        <th data-options="field:'answer'" width="50">学生答题信息</th>
        <th data-options="field:'paperId'" width="50">试卷编号</th>
        <th data-options="field:'paperName'" width="50">试卷名称</th>
        <th data-options="field:'stuId'" width="50">学生编号</th>
        <th data-options="field:'stuName'" width="50">学生名称</th>
        <th data-options="field:'ids'" width="50">题目编号</th>
    </tr>
    </thead>
</table>
<div id="toolbar">
    <a href="#" class="easyui-linkbutton" data-options=" iconCls:'icon-edit', plain:'true'"
       onclick="checkPaper()">批改试卷</a>
</div>
<!-- 弹出层 -->
<div id="promptDiv" style="display:none;"></div>
<script type="text/javascript">

    //批改函数
    function checkPaper() {
        var row = $('#dg').datagrid('getSelected');
        if (row) {
            $("#promptDiv").dialog({
                title: "题型窗口",
                width: '99%',
                height: '100%',
                modal: true,
                href: 'checkSubjectiveController?flag=initCheck&subId=' + row.subId,

            });


        }
    }

</script>
</body>
</html>